#define _CRT_SECURE_NO_WARNINGS
#include"heap.h"
int main()
{
	int a[10] = { 3,5,1,4,6,2,0,5,8,7 };
	Heap hp;
	HeapCreate(&hp, a, 10);
	HeapPush(&hp, 11);
	HeapPush(&hp, 1);
	HeapPush(&hp, 15);
	
	//HeapPop(&hp);
	/*PrintTopK(a, 20, 6);
	*/
	int i = 0;
	int n = HeapSize(&hp);
	while (n--)
	{
		printf("%d ", hp._a[i++]);
	}
	HeapDestory(&hp);
	return 0;

}